package com.zero.singleton.hungry;

public class Ruler {
    //直接创建一个实例
    private static Ruler instance = new Ruler();
    //私有化构造方法
    private Ruler(){
        System.out.println("裁定者方法被创建");
    }
    //对外提供获得实例的方法
    public static Ruler getInstance(){
        return instance;
    }

    public static void main(String[] args) {

    }
}
